/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * GeneralFunction.java
 *
 * Created on Jul 21, 2011, 12:19:46 PM
 */
package admin;

import generalCode.Login;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import admin.*;

/**
 *
 * @author Hoai An
 */
public class AdminForm extends javax.swing.JFrame {

    /** Creates new form GeneralFunction */
    public AdminForm() {
        initComponents();
        this.setVisible(true);
        this.setLocationRelativeTo(null);
        this.setTitle("Admin Form");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnRoot = new javax.swing.JPanel();
        lbLogo = new javax.swing.JLabel();
        lbHome = new javax.swing.JLabel();
        lbSupport = new javax.swing.JLabel();
        lbAbout = new javax.swing.JLabel();
        lbHelp = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        lbNamelogin = new javax.swing.JLabel();
        lblogout = new javax.swing.JLabel();
        lbHead = new javax.swing.JLabel();
        pnBottom = new javax.swing.JPanel();
        btuppdate = new javax.swing.JButton();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        pnContent = new javax.swing.JPanel();
        pnManager = new javax.swing.JPanel();
        lbEditatient = new javax.swing.JLabel();
        lbManagerUser = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        lbEditAppointment = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        lbImg = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        lbmenu = new javax.swing.JLabel();
        lbnews = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        lbproduct = new javax.swing.JLabel();
        lbevent = new javax.swing.JLabel();
        lbcontact = new javax.swing.JLabel();
        infor = new javax.swing.JLabel();
        lbLeft = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        pnRoot.setLayout(null);

        lbLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/logo.jpg"))); // NOI18N
        pnRoot.add(lbLogo);
        lbLogo.setBounds(190, 0, 110, 90);

        lbHome.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/home.jpg"))); // NOI18N
        lbHome.setText("<html><font color = blue><b>Home</b></font></html>");
        lbHome.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lbHomeMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                lbHomeMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lbHomeMouseExited(evt);
            }
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                lbHomeMouseReleased(evt);
            }
        });
        lbHome.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                lbHomeMouseMoved(evt);
            }
        });
        pnRoot.add(lbHome);
        lbHome.setBounds(380, 60, 70, 30);

        lbSupport.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/support.jpg"))); // NOI18N
        lbSupport.setText("<html><font color = blue><b>Support</b></font></html>");
        lbSupport.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lbSupportMouseExited(evt);
            }
        });
        lbSupport.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                lbSupportMouseMoved(evt);
            }
        });
        pnRoot.add(lbSupport);
        lbSupport.setBounds(460, 60, 80, 30);

        lbAbout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/about.jpg"))); // NOI18N
        lbAbout.setText("<html><font color = blue><b>About</b></font></html>");
        lbAbout.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lbAboutMouseExited(evt);
            }
        });
        lbAbout.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                lbAboutMouseMoved(evt);
            }
        });
        pnRoot.add(lbAbout);
        lbAbout.setBounds(570, 60, 70, 30);

        lbHelp.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/help.jpg"))); // NOI18N
        lbHelp.setText("<html><font color = blue><b>Help</b></font></html>");
        lbHelp.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lbHelpMouseClicked(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lbHelpMouseExited(evt);
            }
        });
        lbHelp.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                lbHelpMouseMoved(evt);
            }
        });
        pnRoot.add(lbHelp);
        lbHelp.setBounds(670, 61, 70, 30);

        jLabel21.setText("<html><font color = blue><b>Welcome:</b></font></html>");
        pnRoot.add(jLabel21);
        jLabel21.setBounds(580, 10, 60, 10);

        lbNamelogin.setText("<html><font color = blue>Administrator</font></html>");
        pnRoot.add(lbNamelogin);
        lbNamelogin.setBounds(660, 0, 90, 30);

        lblogout.setText("<html><font color = blue><b>Log out</b></font></html>");
        lblogout.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lblogoutMouseClicked(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lblogoutMouseExited(evt);
            }
        });
        lblogout.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                lblogoutMouseMoved(evt);
            }
        });
        pnRoot.add(lblogout);
        lblogout.setBounds(700, 20, 50, 30);

        lbHead.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/top1.jpg"))); // NOI18N
        pnRoot.add(lbHead);
        lbHead.setBounds(0, 0, 780, 93);

        pnBottom.setBackground(new java.awt.Color(153, 153, 255));
        pnBottom.setBorder(javax.swing.BorderFactory.createTitledBorder(""));

        btuppdate.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/ll.PNG"))); // NOI18N
        btuppdate.setText("<html><font color = blue><b>check for Update</b></font></html>");

        jLabel16.setText("<html><font color = blue>Version Installed:</font></html>");

        jLabel17.setText("<html><font color = blue>Last update:</font></html>");

        jLabel18.setText("<html><font color = red>1.0.2</font></html>");

        jLabel19.setText("<html><font color = red>29/07/2011</font></html>");

        javax.swing.GroupLayout pnBottomLayout = new javax.swing.GroupLayout(pnBottom);
        pnBottom.setLayout(pnBottomLayout);
        pnBottomLayout.setHorizontalGroup(
            pnBottomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnBottomLayout.createSequentialGroup()
                .addGap(296, 296, 296)
                .addGroup(pnBottomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(32, 32, 32)
                .addGroup(pnBottomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(pnBottomLayout.createSequentialGroup()
                        .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 132, Short.MAX_VALUE)
                        .addComponent(btuppdate, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        pnBottomLayout.setVerticalGroup(
            pnBottomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnBottomLayout.createSequentialGroup()
                .addGroup(pnBottomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(pnBottomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btuppdate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pnRoot.add(pnBottom);
        pnBottom.setBounds(0, 530, 780, 80);

        pnContent.setLayout(null);

        pnManager.setLayout(null);

        lbEditatient.setFont(new java.awt.Font("Tahoma", 0, 14));
        lbEditatient.setForeground(new java.awt.Color(255, 0, 0));
        lbEditatient.setText("<html><b><font color = yellow>Edit Profile Patient</font></b></html>");
        lbEditatient.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lbEditatientMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                lbEditatientMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lbEditatientMouseExited(evt);
            }
        });
        pnManager.add(lbEditatient);
        lbEditatient.setBounds(150, 120, 130, 20);

        lbManagerUser.setFont(new java.awt.Font("Tahoma", 0, 14));
        lbManagerUser.setText("<html><b><font color = yellow>Manager User</font></b></html>");
        lbManagerUser.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lbManagerUserMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                lbManagerUserMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lbManagerUserMouseExited(evt);
            }
        });
        pnManager.add(lbManagerUser);
        lbManagerUser.setBounds(160, 190, 120, 17);

        jLabel28.setText("<html><font color = blue>This software it is indispensable to any hospital.</font></html>");
        pnManager.add(jLabel28);
        jLabel28.setBounds(40, 50, 320, 30);

        jLabel27.setText("<html><font color = blue>Remdedy Schedule is a Application will help manage of Hopital easy.</font></html> ");
        pnManager.add(jLabel27);
        jLabel27.setBounds(30, 30, 400, 30);

        jLabel26.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel26.setText("<html><font color = blue>Benefits of Remedy Schedule</font></html>Benefits of Remedy Schedule");
        pnManager.add(jLabel26);
        jLabel26.setBounds(10, 10, 200, 20);

        jLabel9.setText("<html><font color = red>*************************************</font></html>");
        pnManager.add(jLabel9);
        jLabel9.setBounds(120, 300, 230, 20);

        jLabel10.setText("<html><font color = red><b>********************************</b></font></html>");
        pnManager.add(jLabel10);
        jLabel10.setBounds(120, 100, 310, 20);

        jLabel12.setText("<html><font color = red>*************************************</font></html>");
        pnManager.add(jLabel12);
        jLabel12.setBounds(120, 240, 230, 10);

        jLabel13.setText("<html><font color = red>*************************************</font></html>");
        pnManager.add(jLabel13);
        jLabel13.setBounds(120, 90, 240, 20);

        lbEditAppointment.setFont(new java.awt.Font("Tahoma", 0, 14));
        lbEditAppointment.setText("<html><b><font color = yellow>EditApointment</font></b></html>");
        lbEditAppointment.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lbEditAppointmentMouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                lbEditAppointmentMouseEntered(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lbEditAppointmentMouseExited(evt);
            }
        });
        pnManager.add(lbEditAppointment);
        lbEditAppointment.setBounds(160, 250, 130, 20);

        jLabel14.setText("<html><font color = red>*************************************</font></html>");
        pnManager.add(jLabel14);
        jLabel14.setBounds(120, 220, 230, 14);

        jLabel15.setText("<html><font color = red>*************************************</font></html>");
        pnManager.add(jLabel15);
        jLabel15.setBounds(120, 170, 230, 20);

        jLabel20.setText("<html><font color = red>*************************************</font></html>");
        pnManager.add(jLabel20);
        jLabel20.setBounds(120, 150, 230, 20);

        jLabel22.setText("<html><font color = red>*************************************</font></html>");
        pnManager.add(jLabel22);
        jLabel22.setBounds(120, 90, 240, 20);

        jLabel23.setText("<html><font color = red>*************************************</font></html>");
        pnManager.add(jLabel23);
        jLabel23.setBounds(120, 280, 230, 20);

        lbImg.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/content.jpg"))); // NOI18N
        pnManager.add(lbImg);
        lbImg.setBounds(0, 0, 650, 430);

        pnContent.add(pnManager);
        pnManager.setBounds(127, -2, 650, 430);

        jLabel7.setBackground(java.awt.Color.red);
        jLabel7.setText("<html><font color = red><b>Choose a Task</b></font></html>");
        pnContent.add(jLabel7);
        jLabel7.setBounds(10, 14, 90, 30);

        lbmenu.setText("<html><font color = red>Menu</font></html>");
        lbmenu.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                lbmenuMouseClicked(evt);
            }
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lbmenuMouseExited(evt);
            }
        });
        lbmenu.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                lbmenuMouseMoved(evt);
            }
        });
        pnContent.add(lbmenu);
        lbmenu.setBounds(30, 40, 80, 30);

        lbnews.setText("<html><font color = red>News</font></html>");
        lbnews.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lbnewsMouseExited(evt);
            }
        });
        lbnews.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                lbnewsMouseMoved(evt);
            }
        });
        pnContent.add(lbnews);
        lbnews.setBounds(30, 60, 50, 40);

        jLabel11.setText("<html><font color = red><b>Choose a Link</b></font></html>");
        pnContent.add(jLabel11);
        jLabel11.setBounds(10, 110, 80, 14);

        lbproduct.setText("<html><font color = red>New Servise</font></html>");
        lbproduct.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lbproductMouseExited(evt);
            }
        });
        lbproduct.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                lbproductMouseMoved(evt);
            }
        });
        pnContent.add(lbproduct);
        lbproduct.setBounds(20, 140, 80, 30);

        lbevent.setText("<html><font color = red>Event</font></html>");
        lbevent.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lbeventMouseExited(evt);
            }
        });
        lbevent.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                lbeventMouseMoved(evt);
            }
        });
        pnContent.add(lbevent);
        lbevent.setBounds(20, 170, 50, 20);

        lbcontact.setText("<html><font color =red>Contact</font></html>");
        lbcontact.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                lbcontactMouseExited(evt);
            }
        });
        lbcontact.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                lbcontactMouseMoved(evt);
            }
        });
        pnContent.add(lbcontact);
        lbcontact.setBounds(20, 200, 50, 14);

        infor.setText("<html><font color =red><b>Information of my company</b></font></html>");
        infor.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                inforMouseExited(evt);
            }
        });
        infor.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                inforMouseMoved(evt);
            }
        });
        pnContent.add(infor);
        infor.setBounds(10, 330, 100, 40);

        lbLeft.setIcon(new javax.swing.ImageIcon(getClass().getResource("/img/isttask.jpg"))); // NOI18N
        pnContent.add(lbLeft);
        lbLeft.setBounds(0, 0, 130, 432);

        pnRoot.add(pnContent);
        pnContent.setBounds(0, 100, 780, 430);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pnRoot, javax.swing.GroupLayout.PREFERRED_SIZE, 778, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pnRoot, javax.swing.GroupLayout.PREFERRED_SIZE, 610, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void lbHomeMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbHomeMouseClicked
}//GEN-LAST:event_lbHomeMouseClicked

    private void lbHomeMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbHomeMouseExited
        this.lbHome.setText("<html><font color = blue>Home</font></html>");
}//GEN-LAST:event_lbHomeMouseExited

    private void lbHomeMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbHomeMouseReleased
    }//GEN-LAST:event_lbHomeMouseReleased

    private void lbHomeMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbHomeMouseMoved
        this.lbHome.setText("<html><u><font color = blue>Home</font></u></html>");// TODO add your handling code here:
}//GEN-LAST:event_lbHomeMouseMoved

    private void lbSupportMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbSupportMouseExited
        this.lbSupport.setText("<html><font color = blue>Support</font></html>");
}//GEN-LAST:event_lbSupportMouseExited

    private void lbSupportMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbSupportMouseMoved
        this.lbSupport.setText("<html><u><font color = blue>Support</font></u></u></html>");
}//GEN-LAST:event_lbSupportMouseMoved

    private void lbAboutMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbAboutMouseExited
        this.lbAbout.setText("<html><font color = blue>About</font></html>");
}//GEN-LAST:event_lbAboutMouseExited

    private void lbAboutMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbAboutMouseMoved
        this.lbAbout.setText("<html><u><font color = blue>About</font></u></u></html>");
}//GEN-LAST:event_lbAboutMouseMoved

    private void lbHelpMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbHelpMouseExited
        this.lbHelp.setText("<html><font color = blue>Help</font></html>");
}//GEN-LAST:event_lbHelpMouseExited

    private void lbHelpMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbHelpMouseMoved
        this.lbHelp.setText("<html><u><font color = blue>Help</font></u></u></html>");
}//GEN-LAST:event_lbHelpMouseMoved

    private void lblogoutMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblogoutMouseExited
        this.lblogout.setText("<html><font color = blue>Log out</font></html>");
}//GEN-LAST:event_lblogoutMouseExited

    private void lblogoutMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblogoutMouseMoved
        this.lblogout.setText("<html><u><font color=blue><b>Log out</b></font></u></html>");
}//GEN-LAST:event_lblogoutMouseMoved

    private void lbHomeMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbHomeMouseEntered
        this.lblogout.setText("<html><u><font color = red>Log out</font></u></u></html>");
    }//GEN-LAST:event_lbHomeMouseEntered

    private void lbEditatientMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbEditatientMouseClicked
        new PatientForm();
    }//GEN-LAST:event_lbEditatientMouseClicked

    private void lblogoutMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblogoutMouseClicked
        int response = JOptionPane.showConfirmDialog(null, "Are you sure delete it?", "Confirm",
                JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);
        if (response == JOptionPane.YES_OPTION) {
            this.dispose();
            new Login();
        }

    }//GEN-LAST:event_lblogoutMouseClicked

    private void lbManagerUserMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbManagerUserMouseClicked
        new ManagerUserForm();
    }//GEN-LAST:event_lbManagerUserMouseClicked

    private void lbmenuMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbmenuMouseClicked
        
}//GEN-LAST:event_lbmenuMouseClicked

    private void lbmenuMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbmenuMouseExited
        this.lbmenu.setText("<html><font color = red>Menu</font></html>");
}//GEN-LAST:event_lbmenuMouseExited

    private void lbmenuMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbmenuMouseMoved
        this.lbmenu.setText("<html><u><font color = red>Menu</font></u></html>");
}//GEN-LAST:event_lbmenuMouseMoved

    private void lbnewsMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbnewsMouseExited
        this.lbnews.setText("<html><font color = red>News</font></html>");
}//GEN-LAST:event_lbnewsMouseExited

    private void lbnewsMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbnewsMouseMoved
        this.lbnews.setText("<html><u><font color = red>News</font></u></html>");
}//GEN-LAST:event_lbnewsMouseMoved

    private void lbproductMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbproductMouseExited
        this.lbproduct.setText("<html><font color = red>Product</font></html>");
}//GEN-LAST:event_lbproductMouseExited

    private void lbproductMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbproductMouseMoved
        this.lbproduct.setText("<html><u><font color = red>Product</font></u></html>");
}//GEN-LAST:event_lbproductMouseMoved

    private void lbeventMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbeventMouseExited
        this.lbevent.setText("<html><font color = red>Event</font></html>");
}//GEN-LAST:event_lbeventMouseExited

    private void lbeventMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbeventMouseMoved
        this.lbevent.setText("<html><u><font color = red>Event</font></u></html>");
}//GEN-LAST:event_lbeventMouseMoved

    private void lbcontactMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbcontactMouseExited
        this.lbcontact.setText("<html><font color = red>Contact</font></html>");
}//GEN-LAST:event_lbcontactMouseExited

    private void lbcontactMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbcontactMouseMoved
        this.lbcontact.setText("<html><u><font color = red>Contact</font></u></html>");
}//GEN-LAST:event_lbcontactMouseMoved

    private void inforMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_inforMouseExited
        this.infor.setText("<html><font color = red>Information of my company</font></html>");
}//GEN-LAST:event_inforMouseExited

    private void inforMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_inforMouseMoved
        this.infor.setText("<html><u><font color = red>Information of my company</font></u></html>");
}//GEN-LAST:event_inforMouseMoved

    private void lbManagerUserMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbManagerUserMouseEntered
        this.lbManagerUser.setText("<html><b><font color = yellow><u>Manager User</u></font></b></html>");
    }//GEN-LAST:event_lbManagerUserMouseEntered

    private void lbManagerUserMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbManagerUserMouseExited
        this.lbManagerUser.setText("<html><b><font color = yellow>Manager User</font></b></html>");
    }//GEN-LAST:event_lbManagerUserMouseExited

    private void lbEditatientMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbEditatientMouseEntered
        this.lbEditatient.setText("<html><b><font color = yellow><u>Edit Profile Patient</u></font></b></html>");
    }//GEN-LAST:event_lbEditatientMouseEntered

    private void lbEditatientMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbEditatientMouseExited
       this.lbEditatient.setText("<html><b><font color = yellow>Edit Profile Patient</font></b></html>");
    }//GEN-LAST:event_lbEditatientMouseExited

    private void lbEditAppointmentMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbEditAppointmentMouseEntered
        this.lbEditAppointment.setText("<html><b><font color = yellow><u>Edit Appointment</u></font></b></html>");
    }//GEN-LAST:event_lbEditAppointmentMouseEntered

    private void lbEditAppointmentMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbEditAppointmentMouseExited
    this.lbEditAppointment.setText("<html><b><font color = yellow>Edit Appointment</font></b></html>");
    }//GEN-LAST:event_lbEditAppointmentMouseExited

    private void lbEditAppointmentMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbEditAppointmentMouseClicked
        ViewAppointmentForm viewAppointment = new ViewAppointmentForm();
    }//GEN-LAST:event_lbEditAppointmentMouseClicked

    private void lbHelpMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lbHelpMouseClicked
        try {
            Runtime.getRuntime().exec("hh "
                    + ""
                    + "help.chm");
        } catch (IOException ex) {
            Logger.getLogger(AdminForm.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_lbHelpMouseClicked
    /**
     * @param args the command line arguments
     */
//    public static void main(String args[]) {
//        java.awt.EventQueue.invokeLater(new Runnable() {
//
//            public void run() {
//                new AdminHead().setVisible(true);
//            }
//        });
//    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btuppdate;
    private javax.swing.JLabel infor;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel lbAbout;
    private javax.swing.JLabel lbEditAppointment;
    private javax.swing.JLabel lbEditatient;
    private javax.swing.JLabel lbHead;
    private javax.swing.JLabel lbHelp;
    private javax.swing.JLabel lbHome;
    private javax.swing.JLabel lbImg;
    private javax.swing.JLabel lbLeft;
    private javax.swing.JLabel lbLogo;
    private javax.swing.JLabel lbManagerUser;
    private javax.swing.JLabel lbNamelogin;
    private javax.swing.JLabel lbSupport;
    private javax.swing.JLabel lbcontact;
    private javax.swing.JLabel lbevent;
    private javax.swing.JLabel lblogout;
    private javax.swing.JLabel lbmenu;
    private javax.swing.JLabel lbnews;
    private javax.swing.JLabel lbproduct;
    private javax.swing.JPanel pnBottom;
    private javax.swing.JPanel pnContent;
    private javax.swing.JPanel pnManager;
    private javax.swing.JPanel pnRoot;
    // End of variables declaration//GEN-END:variables

//    public void showAdminDepartment() {
//        this.lbManagerUser.setVisible(false);
//        this.lbNamelogin.setText("Admin Department");
//    }
//
//    public void showAdminHead() {
//        this.lbEditatient.setVisible(false);
//        this.lbViewTimeSlot.setVisible(false);
//        this.lbNamelogin.setText("Admin Head");
//    }
}
